import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)


const store = new Vuex.Store({
    state: {
        // 所有的用户列表
        userlist: [],
        total: 0
    },
    mutations: {
        setUsersList(state, userlist) {
            state.userlist = userlist
        },
        setUsersTotal(state, total) {
            state.total = total
        }
    },
    actions: {},
})

export default store